class ActDetailsModel {
  String? msg;
  int? code;
  ActDetailsDataModel? data;

  ActDetailsModel({this.msg, this.code, this.data});

  ActDetailsModel.fromJson(Map  json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'] != null ?ActDetailsDataModel.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['msg'] = msg;
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class ActDetailsDataModel {
  String? actiCover;
  String? actiTitle;
  String? actiTime;
  String? actiProvince;
  String? actiCity;
  String? actiArea;
  String? actiAddr;
  double? actiLon;
  double? actiLat;
  String? actiCost;
  String? actiPhone;
  int? enrollNum;
  List<JoinList>? joinList;
  String? actiDescribe;
  int? sign;//--是否模糊展示头像  0-清晰 1-模糊

  ActDetailsDataModel(
      {this.actiCover,
        this.actiTitle,
        this.actiTime,
        this.actiProvince,
        this.actiCity,
        this.actiArea,
        this.actiAddr,
        this.actiLon,
        this.actiLat,
        this.actiCost,
        this.enrollNum,
        this.joinList,
        this.actiDescribe,
        this.sign,this.actiPhone});

  ActDetailsDataModel.fromJson(Map<String, dynamic> json) {
    actiCover = json['actiCover'];
    actiTitle = json['actiTitle'];
    actiTime = json['actiTime'];
    actiProvince = json['actiProvince'];
    actiCity = json['actiCity'];
    actiArea = json['actiArea'];
    actiAddr = json['actiAddr'];
    actiLon = json['actiLon'];
    actiLat = json['actiLat'];
    actiCost = json['actiCost'];
    actiPhone = json['actiPhone'];
    enrollNum = json['enrollNum'];
    if (json['joinList'] != null) {
      joinList = <JoinList>[];
      json['joinList'].forEach((v) {
        joinList!.add(JoinList.fromJson(v));
      });
    }
    actiDescribe = json['actiDescribe'];
    sign = json['sign'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['actiCover'] = actiCover;
    data['actiTitle'] = actiTitle;
    data['actiTime'] = actiTime;
    data['actiProvince'] =actiProvince;
    data['actiCity'] = actiCity;
    data['actiArea'] = actiArea;
    data['actiAddr'] = actiAddr;
    data['actiLon'] = actiLon;
    data['actiLat'] = actiLat;
    data['actiCost'] = actiCost;
    data['actiPhone'] = actiPhone;
    data['enrollNum'] = enrollNum;
    if (joinList != null) {
      data['joinList'] = joinList!.map((v) => v.toJson()).toList();
    }
    data['actiDescribe'] = actiDescribe;
    data['sign'] = sign;
    return data;
  }
}

class JoinList {
  String? memberId;
  String? profilePhoto;

  JoinList({this.memberId, this.profilePhoto});

  JoinList.fromJson(Map<String, dynamic> json) {
    memberId = json['memberId'];
    profilePhoto = json['profilePhoto'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['memberId'] =memberId;
    data['profilePhoto'] =profilePhoto;
    return data;
  }
}